+2009-01-18 Martin Nordholts <martinn@svn.gnome.org>
+
+ Do a s/babl_destroy/babl_exit since 'destroy' is better paired
+ with a 'create' and other libraries also use the 'init'/'exit'
+ pair, including GEGL. Keep a define for babl_destroy unless
+ BABL_DISABLE_DEPRECATED is defined.
+
+ * babl/babl-main.h
+ * babl/babl.c
+ * tests/babl-html-dump.c
+ * tests/babl_class_name.c
+ * tests/babl_fish_path_dhtml.c
+ * tests/babl_fish_path_fitness.c
+ * tests/conversions.c
+ * tests/formats.c
+ * tests/grayscale_to_rgb.c
+ * tests/introspect.c
+ * tests/models.c
+ * tests/nop.c
+ * tests/rgb_to_bgr.c
+ * tests/rgb_to_ycbcr.c
+ * tests/sanity.c
+ * tests/srgb_to_lab_u8.c
+ * tests/types.c
+
2009-01-18 Martin Nordholts <martinn@svn.gnome.org>
* babl/babl-classes.h: New file collecting the type constants,
#error this file is only to be included by babl.h
#endif
-/** Initialize the babl library */
+/**
+ * Initialize the babl library
+ */
void babl_init (void);
-/** Deinitialize the babl library (frees any resources used, if the number
- * of calls to babl_destroy() is is equal to the number of calls to
- * babl_init()
+/**
+ * Deinitialize the babl library (frees any resources used, if the
+ * number of calls to babl_exit() is is equal to the number of calls
+ * to babl_init()
*/
-void babl_destroy (void);
+void babl_exit (void);
+
+
+#ifndef BABL_DISABLE_DEPRECATED
+
+#define babl_destroy babl_exit
+
+#endif /* BABL_DISABLE_DEPRECATED */
+
#endif
}
void
-babl_destroy (void)
+babl_exit (void)
{
if (!-- ref_count)
{
printf ("</div>\n");
printf ("</div>\n");
*/
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_init ();
if (test ())
return -1;
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_set_extender (babl_extension_quiet_log ());
babl_fish_stats (stdout);
- babl_destroy ();
+ babl_exit ();
return 0;
}
/*printf ("ok / total : %i %i %f\n", ok, total, (1.0*ok) / total);
*/
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_set_extender (babl_extension_quiet_log ());
babl_conversion_class_for_each (each_conversion, NULL);
- babl_destroy ();
+ babl_exit ();
return !OK;
}
babl_set_extender (babl_extension_quiet_log ());
babl_format_class_for_each (format_check, (void *) 1);
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_init ();
if (test ())
return -1;
- babl_destroy ();
+ babl_exit ();
return 0;
}
{
babl_init ();
babl_introspect (NULL);
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_set_extender (babl_extension_quiet_log ());
babl_model_class_for_each (model_check, NULL);
- babl_destroy ();
+ babl_exit ();
return !OK;
}
char **argv)
{
babl_init ();
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_init ();
if (test ())
return -1;
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_init ();
if (test ())
return -1;
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_init ();
if (!babl_sanity ())
return -1;
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_init ();
if (test ())
return -1;
- babl_destroy ();
+ babl_exit ();
return 0;
}
babl_set_extender (babl_extension_quiet_log ());
babl_type_class_for_each (type_check, NULL);
- babl_destroy ();
+ babl_exit ();
return !OK;
}